home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 11 / AMUG BBS in a Box Volume XI (April 1994) (MacWizards).iso / Files / Publish / E-G / Edit II 2.1.5.sit / Edit II 2.1.5 / Edit II Doc < prev    next >
Encoding:
Text File  |  1994-02-24  |  19.1 KB  |  525 lines  |  [TEXT/EDIT]

  1. Edit II Version 2.1.5
  2. © 1990-94 Kenneth Seah
  3. Portions © by Symantec
  4.  
  5. An enhanced text editor for the Macintosh
  6.  
  7. 0.    Prologue
  8.  
  9. This application is copyrighted by Kenneth Seah and is distributed as shareware. You are 
  10. welcome to try out Edit II for a week or two and if you decide that it's something you want to use, 
  11. send a check drawn on a US Bank or a draft for US$15 (US$18 if you want a disk with the latest 
  12. release) made out to me at the address below, enclosing the little questionnaire on page 11.  I’ll 
  13. answer your problems and consider bug fixes via electronic mail (Internet or America OnLine) 
  14. if you are registered.  As a registered user, you may obtain the latest release at all times from 
  15. one of the above services (you have to bear the online connect and download charges but 
  16. otherwise all upgrades are free).  If you do not have access to any of the services, send US$3 to 
  17. the address below and I’ll mail you a disk with the latest release.
  18.  
  19. Otherwise, give a copy of it to a friend, enclosing this file too and trash your copy (since it takes 
  20. up valuable space on your disk).
  21.  
  22. I'll consider that you have been registered once you have sent in your shareware fee.  Upgrades 
  23. will be posted to America OnLine and Internet.  I can work out a ‘site licence’ fee if you need 
  24. several copies installed at your place.
  25.  
  26. For commercial distribution and correspondence, please contact:
  27.  
  28. Kenneth Seah
  29. P O Box 8565
  30. Austin, TX 78713-8565
  31.  
  32. America OnLine: KSeah
  33. Internet: kseah@procyon.austin.tx.us
  34.  
  35. 1.    Introduction
  36.  
  37. Edit II is intended as a replacement for the Consulair Edit text editor but which allows the use of 
  38. the cursor keys on the Mac keyboard for navigation.  It is not, however, a product of Consulair 
  39. and is not a revision of the Edit application.
  40.  
  41. The num lock LED on the extended keyboard is used to indicate whether the cursor pad or the 
  42. numeric pad mode is on.  The home, end, page up, page down keys will also work, as will the 
  43. delete right (del) key.  One level of undo is supported.  You can launch Edit II by double clicking 
  44. old Edit files (since Edit II uses the same creator signature as Edit, that is, EDIT). This means 
  45. that you might want to rebuild the desktop after installing Edit II.
  46.  
  47. Edit II requires System Software 4.1 or later and above and is Multifinder-friendly.  It is also 
  48. 32-bit clean and runs fine under System 7.  Edit II now handles System 7 stationery documents.
  49.  
  50. This program is compiled using Think C 6.0.1 and uses the Capps’ Editor Toolkit.
  51.  
  52. 2.    Menus
  53.  
  54. Edit II works just like Consulair’s Edit.  Each of the menus and their respective commands are 
  55. described in the subsequent paragraphs.
  56.  
  57. File menu
  58.  
  59. New
  60. Creates a new window named ‘Untitled-N’ for editing, where N is a number starting at 1.
  61.  
  62. Open...
  63. Displays the standard file open dialog box to allow the selection of a file to edit.  The 
  64. dialog box will display all files of type ‘TEXT’, ‘RRRS’ (Red Ryder script files) and 
  65. ‘ttro’ (TeachText read-only text files).  Stationery documents under System 7 will be 
  66. opened as ‘Untitled-N’ windows.
  67.  
  68. Close
  69. Closes the frontmost editing window.  If the file has been changed in any way, the 
  70. standard file save dialog box will be displayed.
  71.  
  72. Save
  73. Saves the frontmost window to its file on disk.  If the file has not been previously saved, 
  74. perform a ‘Save As...’ operation.
  75.  
  76. Save As...
  77. Saves the frontmost window to a differently named file by presenting the standard file 
  78. save dialog box.
  79.  
  80. Revert
  81. Reverts the frontmost window to the most recently saved version of the file.  A prompt 
  82. message is displayed to confirm the action.
  83.  
  84. Page Setup...
  85. Displays the standard printer Page Setup dialog box.
  86.  
  87. Print
  88. Displays the standard printer Print dialog box to initiate printing of the frontmost 
  89. window.
  90.  
  91. Transfer
  92. Displays the standard file selection dialog box to choose an application program to run.
  93.  
  94. Quit    
  95.     Quits Edit II after prompting for saving of any changed windows.
  96.  
  97. Edit menu
  98.  
  99. Undo
  100. Reverts from the previous editing operation.
  101.  
  102. Cut
  103. Removes the currently selected text and copies it into the clipboard.
  104.  
  105. Copy
  106. Copies the currently selected text into the clipboard without deleting it.
  107.  
  108. Paste
  109. Pastes the clipboard text at the insertion point.  If a range has been selected, then the 
  110. pasted text will replace the selection.
  111.  
  112. Clear
  113. Deletes the currently selected text without copying it to the clipboard.
  114.  
  115. Select All
  116. Selects all the text in the frontmost window.
  117.  
  118. Search menu
  119.  
  120. Find...
  121. Displays the ‘find and replace’ dialog box for entry of search (Find) and replacement 
  122. (Replace with) strings.  GREP-style searching is available (see later on how to define 
  123. GREP search and replacement strings).  The ‘find and replace’ dialog box has several 
  124. options:
  125.  
  126. ‘Match Words’ will only flag a match if there is an exact word for word match with the 
  127. search string.
  128.  
  129. ‘Wrap Around’ will flag matches even when the words wrap over at the end of a line.
  130.  
  131. ‘Ignore Case’ will flag matches even when the cases (capitals and small letters) do not 
  132. match but the letters do.
  133.  
  134. There is an option to do multi-file searches of all TEXT-type files inside a folder.  The 
  135. multi-file search is activated by clicking on the Multi-File Search checkbox which 
  136. brings up the standard file selection dialog box.  Selecting a TEXT-type file will initiate 
  137. multi-file searches of the search string for all TEXT-type files within the folder.  Note 
  138. that multi-file searching does not descend into subfolders (i.e. one folder level only).
  139.  
  140. Cutting and pasting of text selections is allowed into the search and replacement strings 
  141. in the ‘find and replace’ dialog box.  This is achieved by using the command-C and 
  142. command-V combinations.  If you want to enter the tab or return characters in the Find 
  143. dialog box, key in command-tab and command-return respectively.
  144.  
  145. Search and replacement strings are retained between searches.  The ‘Don’t Find’ button 
  146. will retain the search and replacement string entries but will not initiate any searches.  
  147. The ‘Cancel’ button on the other hand, will ignore any entries made for these strings.
  148.  
  149. Enter Selection
  150. Puts the currently selected text into the search string.
  151.  
  152.  
  153. Replace
  154. Replaces the currently selected text with the replacement string.
  155.  
  156. Replace and Find Again
  157. Replaces the currently selected text with the replacement string and searches for the 
  158. next occurrence of the search string.
  159.  
  160. Replace All...
  161. Replaces all occurrences of the search string with the replacement string.  Prompts for 
  162. confirmed replacement if required.
  163.  
  164. Find in Next File
  165. Only operable under multi-file searches – will look for occurrence of the search string 
  166. in the next file in the specified folder.
  167.  
  168. Go to Top
  169. Go to Bottom
  170. Move the insertion point to the beginning or end of the file, respectively.
  171.  
  172. Go to Line#...
  173. Displays a dialog and moves to the specified line.
  174.  
  175. Goodies menu
  176.  
  177. Shift Left
  178. Shift Right
  179. Moves the selected text one space to the left or right.
  180.  
  181. Balance
  182. Extends current selection to encompass the next level of enclosing braces {}, brackets [] 
  183. or parentheses ().  A beep means that the text could not be balanced. [Great for C and 
  184. Lisp people!]
  185.  
  186. Add LFs
  187. Adds linefeed characters to the end of every line.
  188.  
  189. Strip LFs
  190. Removes linefeed characters from the text.
  191.  
  192. Wrap to Column...
  193. Wraps the text to a user-specified column, default is the window wrap column.
  194.  
  195. Wrap to Window
  196. Wraps the text to the window width.
  197.  
  198. Unwrap
  199. Almost the reverse of the above wraps.  What Unwrap does is to replace all single 
  200. occurrences of the ‘return’ character by a space and leave multiple runs of returns 
  201. untouched.  Thus a ‘paragraph’ is recognized as ending in two or more returns.
  202.  
  203. Remove Invisibles
  204. Removes all the invisible (non-printing) characters with the exceptions of tab, return 
  205. and linefeed.
  206.  
  207. Options menu
  208.  
  209. Font
  210. Size
  211. Creator
  212. Select the font, size and  creator for the file being edited.  The size submenu has 
  213. ‘Larger’, ‘Smaller’ and ‘Other...’ commands to allow for selection of non-standard sizes.  
  214. The creators supported by Edit II are:
  215.  
  216. EDIT    Consulair Edit (and Edit II)
  217. MPS    Apple MPW
  218. KAHL    Think C/Think Project Manager
  219. PJMM    Think Pascal
  220. ALFA    Alpha
  221. MACA    MacWrite
  222. MSWD    Microsoft Word
  223. nX^n    WriteNow
  224. ttxt    TeachText
  225. PEDT    DA Edit or PEdit
  226. WNGZ    WingZ
  227. WPC2    WordPerfect
  228. L123    Lotus 1-2-3
  229. CIM    CompuServe Information Manager
  230. MRIP    TScript
  231. Rich    BBEdit
  232. AOqc    America Online
  233.  
  234. Default font is Monaco, default size is 9 and default creator is EDIT.
  235.  
  236. Set Tabs...
  237. Sets the number of spaces to one tab stop for the topmost window(default is set in the 
  238. preferences dialog.  Initially 4 spaces to the tab).
  239. Set Wrap...
  240. Sets the column at which the text will be wrapped at (actually the first space typed after 
  241. this column causes the wrap, and not the same as doing a ‘Wrap to Column...’).  Default is 
  242. specified in the ‘Wrap at’ item in the preferences dialog (initially 80).
  243. Autowrap
  244. Toggles autowrap mode on or off.  The icon at the bottom left of the window indicates the 
  245. mode.  Clicking on the icon will change states.
  246.  
  247.                    
  248.  
  249.  
  250. Preferences...
  251. Displays a dialog box to allow changing of default preferences.  Font, size, creator and 
  252. spaces per tab can be set.  The radio buttons and check boxes are covered below.
  253.  
  254. Strip LF
  255. Selecting the Strip LF option removes the linefeeds when the files are read in. 
  256. SmartStrip
  257. SmartStrip is an intelligent linefeed remover in which linefeeds are removed when the 
  258. file is read and replaced (after each CR or replacing each CR - depending on the input 
  259. format) when the file is written back.  The default option is SmartStrip.
  260. Don’t Strip
  261. Don’t remove any linefeeds on file open.
  262.  
  263. Horizontal
  264. Vertical
  265. Sets the default new window horizontal and vertical size.  The ‘Max Screen Size’ button 
  266. puts the size of the current screen in these items.  Checking the ‘Use monitor size’ box 
  267. disregards the horizontal and vertical size settings and makes all new windows open to 
  268. full monitor screen size (which is the default case).
  269.  
  270. Auto Indent
  271. Toggles automatic indentation of text (useful for programmers).  Default is autoindent 
  272. on.
  273. New Untitled
  274. If selected, displays an Untitled window when starting Edit II (next time of course).  
  275. Default is on.
  276. Print Headers
  277. If selected will print informative header information at the top of every page.  Default is 
  278. to print these headers.
  279. Cursor Jump
  280. Uses the ‘-’ key on the keypad to invoke the cursor jump feature (see later).  Default is 
  281. on.
  282. Auto Wrap on Open
  283. Automatically wraps the text file to the default window wrap column (see below) when 
  284. opened.  Very useful for reading TeachText files.  Default is off.
  285. Autowrap
  286. Automatically wraps text at the first space typed after the window wrap column.  The 
  287. ‘Wrap at’ box is the default value of the wrap column for new windows (initial value is 
  288. 80).  Autowrap defaults to off.
  289.  
  290. Save Preferences Button
  291. Saves the option settings (all the items in the preferences box) into the EditPrefs file 
  292. which is stored in the Preferences folder of the System Folder.
  293.  
  294. Windows menu
  295.  
  296. Layer
  297. Layers all the windows neatly on the screen.  The previous frontmost window is brought 
  298. to the front.  
  299.  
  300. Tile
  301. Tiles all the windows neatly on the screen.  The previous frontmost window is selected.  
  302. This option is active for 9 or less windows.  
  303.  
  304. Close All
  305. Save All
  306. Closes (or saves) all the displayed windows.  Saving does not close any windows.  Any 
  307. untitled windows will be ‘saved as’.  You may notice ‘weird’ command key equivalents for 
  308. Close All (cmd-∑) and Save All (cmd-ß).  It turns out that ∑ is the same as ‘option-W’ 
  309. while ß is the same as ‘option-S’.  Thus, Close All is ‘cmd-option-W’ while Save All is 
  310. ‘cmd-option-S’.
  311.  
  312. <window name list>
  313. Each of the window names appears here for rapid selection.  The first 9 windows have 
  314. command key equivalents ‘command-1’ through ‘command-9’.  Edit II can now handle 
  315. unlimited windows (subject to available system memory set aside for it of course).
  316.  
  317. 3.    Keyboard Frolics
  318.  
  319. Cursor keys on the Macintosh Plus and above now work.  In addition, if you have an extended 
  320. keyboard, then the extra keys between the main keys and keypad also work as follows:
  321.  
  322. page up
  323. command-up arrow
  324. Moves to the previous screenful of text without changing the insertion point.
  325.  
  326. page down
  327. command-down arrow
  328. Moves to the next screenful of text without changing the insertion point.
  329.  
  330. home
  331. option-up arrow
  332. Moves the insertion point to the beginning of the file.
  333.  
  334. end
  335. option-down arrow
  336. Moves the insertion point to the end of the file.
  337.  
  338. del (delete to right)
  339. Deletes the character to the right of the insertion point.
  340.  
  341. enter (on keypad)
  342. Scrolls to the insertion point.
  343.  
  344. - (on keypad)
  345. Jumps around the five insertion points last clicked at.  Note that double-clicking to 
  346. select a word counts as two insertion points (a quirk of Capps’) and that Edit II will 
  347. cycle through all five points, even though they are the same (like at the beginning).  So 
  348. if the insertion point seems stuck, keep on pressing ‘-’!  Note that this can be turned off 
  349. in the Preferences dialog.
  350.  
  351. F1–F4
  352. Undo, Cut, Copy and Paste.
  353.  
  354. option-return
  355. If autoindent mode is on, then hitting option-return will move the insertion point to the 
  356. start of the next line and not to do any autoindenting for that line.
  357.  
  358. You can also toggle the special cursor pad mode by hitting the num lock key on the 
  359. numeric keypad.  The num lock light on the keyboard will go off (indicating that the 
  360. numeric keypad is now in cursor mode).  This displays an additional (disabled) menu 
  361. called CursorPad.  The keys on the numeric keypad now take on special functionality as 
  362. given below (like the I*M keypad):
  363.  
  364.                   
  365.  
  366. 4.    GREP searching and replacement
  367.  
  368. GREP searching can be now done using regular expressions like the Unix GREP tool. Pattern 
  369. matching of regular expressions is carried out as follows:
  370.  
  371. Patterns (regular expressions)
  372.  
  373. 1.    Any non-special character is a regular expression which matches itself.  Characters [ ] 
  374. \ and . are special characters and should be preceded by \ (see rule 4).
  375.  
  376. 2.    A regular expression can be concatenated with another regular expression.
  377.  
  378. 3.    The . (period) is a special character which matches any one character.
  379.  
  380. 4.    The \ followed by any character except ( ) < > or one of the digits 1-9 is a regular 
  381. expression which matches that character.
  382.  
  383. 5.    A string of characters s surrounded by brackets [ ] forms a regular expression that 
  384. exactly matches any one of the characters in s.  The    regular expression [^ß] matches 
  385. any character not in the string ß.  If a sequence of 3 characters a-b occurs in the string, 
  386. then this represents all the characters from a to b inclusive.
  387.  
  388. 6.    A regular expression R followed by * forms a regular expression which matches zero or 
  389. more occurrences of R.
  390.  
  391. 7.    A regular expression surrounded by \( and \) matches whatever the regular  expression 
  392. matches.
  393.  
  394. 8.    A \ followed by a digit n 1 to 9 is a regular expression which matches whatever the nth 
  395. subexpression surrounded by \( \) matches.
  396.  
  397. 9.    A regular expression surrounded by \< and \> constrains the match to occur when the 
  398. regular expression is immediately preceded and followed by characters which do not 
  399. match [A-Za-z0-9_] and the first and last characters match [A-Za-z0-9_].  This 
  400. allows us to look for "words".
  401.  
  402. 10.    A regular expression which starts with ^ anchors the search pattern to the start of a 
  403. line.  The ^ appearing anywhere else in the regular expression will match the character 
  404. ^.
  405.  
  406. 11.    A regular expression ending in $ will anchor the search pattern to the end of a line.  The 
  407. $ appearing anywhere else in the regular expression will match the $.
  408.  
  409. Replacements
  410.  
  411. 1.    Each occurrence of & in the replacement string will be substituted with whatever was 
  412. last matched by the regular expression.
  413.  
  414. 2.    Each occurrence of the form \n where n is a digit 1 to 9 will substitute whatever was 
  415. matched by the nth subexpression enclosed in \( and \).
  416.  
  417. 3.    Each occurrence of the form \p where p is not a digit 1 to 9 will substitute that 
  418. character p.
  419.  
  420. 5.    Workarounds and other hints
  421.  
  422. Edit II can only search for a pattern in a forward direction.  If you want to search backwards, 
  423. the best workaround is to go back to the start of the file (home) and then search.
  424.  
  425. All files are edited in memory.  So if you have a large file, reset the size of the application using 
  426. Get Info on the Edit II application icon and change the size of the application memory. Or better 
  427. still - run under the Finder (and not MultiFinder).  Naturally you shouldn’t edit a 2MB file on a 
  428. 1MB Mac using Edit II!  Try as far as possible to have approximately twice the memory assigned 
  429. to Edit II than the total size of all the files you're editing.
  430.  
  431. Holding the option key when Edit II is starting up will bring up the standard file open dialog box 
  432. for you to select the name of a file to edit.
  433.  
  434. Edit II will try to save files when memory runs too low but there is no guarantee that it won’t 
  435. crash while doing this.  The advice is to frequently check the available space (see the About Edit 
  436. II... box to show the current amount of free memory).
  437.  
  438. Additional creator names can be inserted into the Creator menu by using ResEdit (use at your 
  439. own risk!!).  Note that exactly FOUR letters must be keyed in for each creator name.
  440.  
  441. Holding the control key when quitting from Edit II will forcibly turn off the num lock LED (just 
  442. in case you ever need it!).
  443.  
  444. Edit II now supports file access permissions.  This means that it should be possible to use Edit II 
  445. on shared files in a network (I don't think Edit II itself is shareable on a network but...).  The  
  446. read-only icon is shown on the bottom left hand side of the window when a read-only file is 
  447. opened.  It will remain in this state until saved (Edit II automatically prompts for a new name 
  448. and will report an access conflict if you try to save the read-only file back to itself!), 
  449. whereupon it changes to the read-write icon.  The read-write icon is displayed when a read-
  450. write file is opened.  This icon changes to the unsaved-file icon when any changes are made to 
  451. the file (as a reminder to save it) and will revert back to the read-write icon when the file is 
  452. saved.
  453.  
  454.                              
  455.  
  456. 6.    Bug Reports
  457.  
  458. If you find any bugs with this program, please write to me at the above address. You can also 
  459. send electronic mail to me on America OnLine as KSeah or via Internet as 
  460. kseah@procyon.austin.tx.us.
  461.  
  462. 7.    Warranty
  463.  
  464. Kenneth Seah hereby disclaims all warranties relating to this software, whether express or 
  465. implied, including without limitation any implied warranties of merchantability or fitness for a 
  466. particular purpose.  Kenneth Seah will not be liable for any special, incidental, consequential, 
  467. indirect or similar damages due to loss of data or any other reason, even if Kenneth Seah or an 
  468. agent of his has been advised of the possibility of such damages.  In no event shall Kenneth Seah's 
  469. liability for any damages ever exceed the price paid for the license to use software, regardless 
  470. of the form of the claim.  The person using the software bears all risk as to the quality and 
  471. performance of the software.
  472.  
  473. 8.    Questionnaire
  474.  
  475. Copy, print this and fill in the blanks!
  476.  
  477. REGISTERING FOR: Edit II Version 2.1.5 February 24, 1994
  478.  
  479. NAME:
  480.  
  481.  
  482.  
  483.  
  484.  
  485. ADDRESS:
  486.  
  487.  
  488.  
  489.  
  490.  
  491. CITY:
  492.  
  493.  
  494. STATE:
  495.  
  496.  
  497. ZIP:
  498.  
  499. ELECTRONIC MAIL ADDRESSES (GEnie, InterNet, Compu$erve, AppleLink, America OnLine): 
  500. [For updates and bug reports]
  501.  
  502.  
  503.  
  504.  
  505. Macintosh you have:
  506.  
  507.  
  508.  
  509.  
  510. Current version of your System Software:
  511.  
  512.  
  513.  
  514.  
  515.  
  516. Comments about Edit II (add more space if desired!):
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524. >>> Don't forget the US$15 shareware fee (add another US$3 if you want the latest on a disk)<<<
  525.